package androidvn.xenforo.fourums.model;

import java.util.Comparator;

public class Post implements Comparator<Post> {
	String postId;
	String threadId;
	String userId;
	String userName;
	String postDate;
	String message;
	String position;
	String likes;
	String likeUsers;

	public Post() {

	}

	public Post(String postId, String threadId, String userId, String userName,
			String postDate, String message, String position, String likes,
			String likeUsers) {
		super();
		this.postId = postId;
		this.threadId = threadId;
		this.userId = userId;
		this.userName = userName;
		this.postDate = postDate;
		this.message = message;
		this.position = position;
		this.likes = likes;
		this.likeUsers = likeUsers;
	}

	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	public String getThreadId() {
		return threadId;
	}

	public void setThreadId(String threadId) {
		this.threadId = threadId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPostDate() {
		return postDate;
	}

	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getLikes() {
		return likes;
	}

	public void setLikes(String likes) {
		this.likes = likes;
	}

	public String getLikeUsers() {
		return likeUsers;
	}

	public void setLikeUsers(String likeUsers) {
		this.likeUsers = likeUsers;
	}

	@Override
	public int compare(Post lhs, Post rhs) {
		return lhs.getPosition().compareTo(rhs.getPosition());
	}
}
